package com.zhangliuliu.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhangliuliu.bean.RatsBean;
import org.apache.ibatis.annotations.Param;

public interface RatService extends IService<RatsBean> {
    //添加新鼠害
    void addRat(RatsBean ratsBean);
    //查看单个老鼠的信息
    RatsBean select(int id);
    //分页并按照鼠害名称查询老鼠
    IPage<RatsBean> cutByName(@Param("pageNo") int pageNo, @Param("pageSize") int pageSize, @Param("name") String name);
    //按照条件对所有的老鼠进行分页
    IPage<RatsBean>cut(@Param("pageNo") int pageNo, @Param("pageSize") int pageSize,
                       @Param("name") String name,@Param("food") String food,@Param("harm") String harm);

}
